package com.huobao.yunying.adapters;

import com.huobao.yunying.entity.News;
import com.huobao.yunying.utils.ImageUtils;
import com.huobao.zhangying.R;

import android.content.Context;
import android.widget.ImageView;
import joanzapata.android.BaseAdapterHelper;
import joanzapata.android.QuickAdapter;

public class Adapter_News extends QuickAdapter<News>{

	public Adapter_News(Context context){
		super(context, R.layout.item_news);
	}

	@Override
	protected void convert(BaseAdapterHelper arg0, News arg1) {
		arg0.setText(R.id.tv_title, arg1.title).setText(R.id.tv_content, arg1.description);
		ImageView img = arg0.getView(R.id.imageview);
		ImageUtils.loadimg(img, arg1.article_logo);
	}
}
